package com.shawn.appupdater.updater.bean;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

public class DownloadBean implements Serializable {
    private String title;
    private String content;
    private String url;
    private String md5;
    private String versionCode;

    public static DownloadBean parse(String json) {
        DownloadBean downloadBean = JSON.parseObject(json, DownloadBean.class);
        if (downloadBean != null) {
            return downloadBean;
        } else {
            return null;
        }
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }
}
